package com.it.system.searchservice.service;

import com.it.system.educommonapi.entity.Course;
import com.it.system.searchservice.entity.PageEntity;

import java.io.IOException;
import java.util.Map;

/**
 * 课程索引的操作
 */
public interface CourseIndexService {

    /**
     * 初始化课程操作
     */
    void initCourseIndex() throws IOException;


    PageEntity searchCourse(Map<String, String> map) throws IOException;

    void saveCourse(Course course) throws IOException;

    void removeCourse(String id) throws IOException;



}
